package cn.com.ege.mvc.service.impl.business;

import java.io.Serializable;

import cn.com.ege.mvc.exception.BusinessException;
import cn.com.ege.mvc.model.business.ModelRule;
import cn.com.ege.mvc.service.BaseService;

public class ModelRuleService extends BaseService<ModelRule> implements Serializable{
	public void save(ModelRule modelRule) throws BusinessException{
		if (null != modelRule && null != modelRule.getModel_id()) {
			if(0 != modelRule.getId()&& 0 != modelRule.getId()){
				update(modelRule);
			}else{
				add(modelRule);
			}
		}else {
			throw new BusinessException("楦号ID不能为空!");
		}
	}
}
 